<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>系统帮助页面实例管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<div data-role="navbar">
		<ul>
			<li><a class="ui-btn-active" href="#">功能帮助列表</a></li>
			<li><a href="${ctx}/help/systemHelp/form">添加功能帮助</a></li>
		</ul>
	</div>
	<form:form id="searchForm" modelAttribute="systemHelpOption" action="${ctx}/help/systemHelp/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<label>描述 ：</label><form:input path="summary" htmlEscape="false" maxlength="50" class="input-medium"/>
		&nbsp;<input id="btnSubmit" data-inline="true" type="submit" value="查询"/>
	</form:form>
	<tags:message content="${message}"/>
	<div class="icon-buttons">
		<input type="button" class="leave-clean-session" data-inline="true" data-icon="back" data-iconpos="notext" value="返回"/>
	</div>
	<table id="contentTable" data-role="table" class="ui-responsive table-stroke">
		<thead><tr><th>类别</th><th>描述</th><th>详细</th><th>操作</th></tr></thead>
		<tbody>
		<c:forEach items="${page.list}" var="systemHelpOption">
			<tr>
				<td>${systemHelpOption.type.name}</td>
				<td>${systemHelpOption.summary}</td>
				<td>${systemHelpOption.detail}</td>
				<td>
    				<a href="${ctx}/help/systemHelp/form?id=${systemHelpOption.id}">修改</a>
					<a href="${ctx}/help/systemHelp/delete?id=${systemHelpOption.id}" onclick="return confirmx('确认要删除吗？', this.href)">删除</a>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>
